//
//  LXAPMKit.m
//  APMDemo
//
//  Created by Jack on 2020/7/17.
//  Copyright © 2020 LX. All rights reserved.
//

#import "LXAPMKit.h"
#import "LXAPMKitEntryView.h"
#import "LXAPMKitDefine.h"

@interface LXAPMKit ()

@property (nonatomic, strong) LXAPMKitEntryView *entryView;

@end

@implementation LXAPMKit

+ (instancetype)sharedInstance{
    static LXAPMKit *apmKit = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        apmKit = [[LXAPMKit alloc] init];
    });
    return apmKit;
}

- (void)registerSDK{
 
    if (!self.entryView) {
        CGPoint point  = CGPointMake(LXAPMKitScreenWidth, LXAPMKitScreenHeight/2.0+20);
        self.entryView = [[LXAPMKitEntryView alloc] initWithStartPoint:point];
    }
}

@end
